package com.pojo.vo;

import java.io.Serializable;
import java.sql.Timestamp;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class vo_PassengerOrder implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = -4628423515080685857L;
	private Integer userAndPassengerOrder_id;
	private Integer passengerorder_id;
	private Integer users_id;
	private String startPoint;
	private String endPoint;
	private String startTime;
	private String endTime;
	private String startPosition;
	private String endPosition;
	private Integer state_id;
	private String notes;
	private float price;
	private boolean isPay;
	
	public void setStartTime(Timestamp startTime){
		this.startTime=startTime.toString().substring(0,startTime.toString().lastIndexOf("."));
	}
	
	public void setEndTime(Timestamp endTime){
		this.endTime=endTime.toString().substring(0,endTime.toString().lastIndexOf("."));
	}
	
}
